<script setup name="Child">
import { ref } from 'vue'

const bBar = ref(false)
</script>
<template>
  <div>
    Child
    <button @click="bBar = !bBar">弹框</button>

    <teleport to="#dialog">
      <div v-if="bBar" style="background-color: red">弹框</div>
    </teleport>
  </div>
</template>
